Skip to content

fix: dispatch releases explicitly after tagging#36

Merged
roodboi merged 1 commit into
mainfrom
codex/fix-release-workflow-dispatch
Mar 26, 2026
Merged

fix: dispatch releases explicitly after tagging#36
roodboi merged 1 commit into
mainfrom
codex/fix-release-workflow-dispatch

Conversation

@roodboi

@roodboi roodboi commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make tag-release dispatch release.yml explicitly after creating a new release tag instead of relying on a tag-push workflow trigger
  • allow release.yml to accept an optional tag input so the dispatched run can check out the intended tag directly
  • update release docs to match the actual workflow shape

Verification

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release.yml"); YAML.load_file(".github/workflows/tag-release.yml"); puts "yaml ok"'
  • git diff --check

Repo repair performed

  • backfilled GitHub releases for v0.1.3 and v0.1.4
  • reran release-please, which found 0 commits since v0.1.4
  • closed stale release PR chore(main): release 0.1.5 #35

@roodboi roodboi merged commit 1dc615a into main Mar 26, 2026
3 checks passed
@roodboi roodboi deleted the codex/fix-release-workflow-dispatch branch March 26, 2026 02:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7bcbed8506

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +83 to +85
gh workflow run release.yml \
--ref main \
-f tag="${{ steps.create_tag.outputs.tag }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate manual dispatch to avoid duplicate release runs

This new gh workflow run release.yml call can trigger a second release for the same tag when RELEASE_PLEASE_TOKEN is configured, because Create tag if missing pushes with that token and release.yml still listens on push.tags. GitHub documents that events from GITHUB_TOKEN are suppressed except workflow_dispatch/repository_dispatch, but pushes made with a PAT do trigger downstream workflows, so this change can run GoReleaser twice for one version (typically causing one run to fail on existing release/formula artifacts). Consider dispatching only when the push used github.token, or removing/tag-scoping the push trigger.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant